import { del, get, post, put } from '@/utils/request';

// 查询当前地区的服务
export const getCurrent = async (params: any): Promise<any> => {
	return await get('/api/service/skip', params);
};

// 新增服务
export const add = async (params: any): Promise<any> => {
	return await post('/api/service', params);
};

// 批量删除
export const deleted = async (params: number[]): Promise<any> => {
	return await del('/api/service/delete', params);
};

//  update
export const update = async (params: any): Promise<any> => {
	return await put('/api/service', params);
};

export const getServiceById = async (serviceId: any): Promise<any> => {
	return await get(`/api/service/${serviceId}`);
};
